﻿SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

SET ANSI_PADDING ON
GO

CREATE TABLE [dbo].[Audit](
	[auditId] [int] IDENTITY(1,1) NOT NULL,
	[IP] [varchar](50) NULL,
	[formData] [text] NULL,
	[requestData] [text] NULL,
	[headerData] [text] NULL,
	[serverData] [text] NULL,
	[cookieData] [text] NULL,
	[sessionData] [text] NULL,
	[contentType] [text] NULL,
	[modulesData] [text] NULL,
	[loggedOn] [datetime] NOT NULL,
	[url] [varchar](max) NULL,
 CONSTRAINT [PK_Audit] PRIMARY KEY CLUSTERED 
(
	[auditId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]

GO

SET ANSI_PADDING OFF
GO

ALTER TABLE [dbo].[Audit] ADD  CONSTRAINT [DF_Audit_loggedOn]  DEFAULT (getdate()) FOR [loggedOn]
GO